package com.qiwenshare.file.constant;

public enum JobLevelEnum {
    COMPANY(1, "公司领导级"),
    DEPARTMENT(2, "部门领导级"),
    EMPLOYEE(3, "普通员工级")
    ;


    private int type;
    private String desc;
    JobLevelEnum(int type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    public static JobLevelEnum getEnum(int type) {
        for (JobLevelEnum ele : JobLevelEnum.values()) {
            if (ele.getType() == type) {
                return ele;
            }
        }
        return null;
    }

    public int getType() {
        return type;
    }

    public String getDesc() {
        return desc;
    }
}
